package com.lino.design.impl;

import com.lino.design.ICouponDiscount;

import java.math.BigDecimal;
import java.util.Map;

/**
 * @description: n元购
 * @author: lingjian
 * @createDate: 2023/2/9 16:28
 */
public class NYGCouponDiscount implements ICouponDiscount<Double> {

    /**
     * n元购
     * 1.无论原价多少钱都固定金额购买
     *
     * @param couponInfo 优惠券信息泛型
     * @param skuPrice   商品价格
     * @return 优惠后价格
     */
    @Override
    public BigDecimal discountAmount(Double couponInfo, BigDecimal skuPrice) {
        return new BigDecimal(couponInfo);
    }
}
